﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="StaffSearch.aspx.cs" Inherits="SwenAssigment.StaffSearch" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }

        .auto-style2 {
            text-align: center;
            width: 192px;
        }

        .auto-style3 {
            width: 69px;
        }

        .auto-style4 {
            width: 387px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="auto-style2" style="width: 677px">Staff Search</h1>
    <table class="auto-style1" style="width: 677px">
        <tr>
            <td></td>
            <td class="auto-style3">Staff name:</td>
            <td class="auto-style4">
                <asp:TextBox ID="StaffNameTbx" runat="server"></asp:TextBox>
                <asp:Button ID="StaffNameSubmitBtn" runat="server" Text="Submit" OnClick="StaffNameSubmitBtn_Click" />
            </td>
        </tr>
        <tr>
            <td></td>
            <td class="auto-style3">Job:</td>
            <td class="auto-style4">
                <asp:TextBox ID="JobTbx" runat="server"></asp:TextBox>
                <asp:Button ID="JobSubmitBtn" runat="server" Text="Submit" OnClick="JobSubmitBtn_Click" />
            </td>
        </tr>
        <tr>
            <td></td>
            <td class="auto-style3">NRIC:</td>
            <td class="auto-style4">
                <asp:TextBox ID="NRICTbx" runat="server"></asp:TextBox>
                <asp:Button ID="NricSubmitBtn" runat="server" Text="Submit" OnClick="NricSubmitBtn_Click" />
            </td>
        </tr>

    </table>
    <asp:GridView ID="GridView1" runat="server" Width="677px" AutoGenerateColumns="False" Visible="False">
        <Columns>
            <asp:BoundField DataField="StaffId" HeaderText="Staff ID" />
            <asp:BoundField DataField="StaffName" HeaderText="Staff Name" />
            <asp:BoundField DataField="NRIC" HeaderText="NRIC" />
            <asp:BoundField DataField="Dob" HeaderText="Date Of Birth" />
            <asp:BoundField DataField="BankAccountNumber" HeaderText="Bank Account Number" />
            <asp:BoundField DataField="Address" HeaderText="Address" />
            <asp:BoundField DataField="ContactNumber" HeaderText="Contact Number" />
            <asp:BoundField DataField="Job" HeaderText="Job" />
            <asp:HyperLinkField DataNavigateUrlFields="StaffId" DataNavigateUrlFormatString="~/StaffEdit.aspx?StaffId={0}" HeaderText="Details" Text="Details" />
        </Columns>
    </asp:GridView>
    <asp:Label ID="NoDataFoundLbl" runat="server" ForeColor="Red" Style="text-align: center" Visible="false" Text="No Data Found!"></asp:Label>
    <br />
    <asp:Label ID="NoDataEnteredLbl" runat="server" ForeColor="Red" Style="text-align: center" Visible="false" Text="Textbox was empty!"></asp:Label>
    <br />
    <br />
    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/StaffOverview.aspx">Back to Housekeeping & Staff Page</asp:HyperLink>
    <br />
</asp:Content>
